﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ControlBaoCaoGiangCap.ascx.cs" Inherits="WebUserControl_ControlBaoCaoGiangCap" %>
<%@ Register src="uscMsgBox.ascx" tagname="uscMsgBox" tagprefix="uc2" %>

<%@ Register assembly="DevExpress.Web.ASPxPivotGrid.v9.2.Export, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.XtraPivotGrid.Web" tagprefix="dxpgw" %>

<%@ Register assembly="DevExpress.Web.ASPxPivotGrid.v9.2" namespace="DevExpress.Web.ASPxPivotGrid" tagprefix="dxwpg" %>
<link rel="stylesheet" href='<%=ResolveUrl("~/LayoutCss/K_BaoCaoFormLayout.css")%>' type="text/css" />


<script type="text/javascript">
     function pageLoad() {
       $("#<%= bt_baocao.ClientID %>").click(function() { 
        $.blockUI({
             message: '<h1>Xin vui lòng chờ xử lý</h1>', 
            css: { 
            border: 'none', 
            padding: '15px', 
            backgroundColor: '#f00', 
            opacity: .5, 
            color: '#fff' 
        } }); 
        }); 
       $("#<%= Button1.ClientID %>").click(function() { 
        $.blockUI({
             message: '<h1>Xin vui lòng chờ xử lý</h1>', 
            css: { 
            border: 'none', 
            padding: '15px', 
            backgroundColor: '#f00', 
            opacity: .5, 
            color: '#fff'
        } }); 
         setTimeout($.unblockUI, 5000); 
        }); 
        Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
                function EndRequestHandler(sender, args) {
                        $.unblockUI();
                }
        }  
   
</script>  


<uc2:uscMsgBox ID="uscMsgBox1" runat="server" />
 <fieldset>
    <legend>Báo cáo thăng giáng chức TVV</legend>
    <div class="fm-req">
      <label for="DropThang">Chọn tháng:</label>
       <asp:DropDownList ID="DropThang" runat="server" Width="100px">
            </asp:DropDownList>
      </div>
    <div class="fm-req">
      <label for="DropDownList1">TTPP:</label>
       <asp:DropDownList ID="DropDownList1" runat="server" Width="200px">
            </asp:DropDownList>
      </div>
      </fieldset>
      <div>
      <asp:checkboxlist id="check1" runat="server">

            <asp:listitem id="option1" runat="server" value="Duy trì" />

            <asp:listitem id="option2" runat="server" value="Giáng chức" />

            <asp:listitem id="option3" runat="server" value="Thăng chức" />

</asp:checkboxlist>

      </div>
      <div>
      <asp:Button ID="bt_baocao" runat="server" Text="Báo cáo" 
                 style="width: 70px" onclick="bt_baocao_Click" />
            &nbsp;&nbsp;
            <asp:Button ID="Button1" runat="server" Text="Xuất ra Excel" onclick="Button1_Click" />
      </div>

            <dxpgw:ASPxPivotGridExporter ID="ASPxPivotGridExporter1" runat="server" 
                ASPxPivotGridID="ASPxPivotGrid1">
            </dxpgw:ASPxPivotGridExporter>
        <br />
        
        <dxwpg:ASPxPivotGrid ID="ASPxPivotGrid1" runat="server">
        <optionsview showdataheaders="False" showrowgrandtotals="False" 
            showrowtotals="False" />
             <Fields>
          <dxwpg:PivotGridField HeaderStyle-BackColor="Yellow" ID="PivotGridField1" Area="FilterArea" AreaIndex="0" Caption="Báo Cáo Giáng Cấp" 
                     FieldName="Baocao" Visible="True">
                 </dxwpg:PivotGridField>
                 <dxwpg:PivotGridField HeaderStyle-BackColor="Yellow" ID="PivotGridField2" Area="FilterArea" AreaIndex="1" Caption="TTPP : " 
                     FieldName="FromDate" Visible="True">
                 </dxwpg:PivotGridField>
                 <dxwpg:PivotGridField HeaderStyle-BackColor="Yellow" ID="PivotGridField4" Area="FilterArea" AreaIndex="2" Caption="Giờ : " 
                     FieldName="Time" Visible="True">
                 </dxwpg:PivotGridField>
            </Fields> 
    </dxwpg:ASPxPivotGrid>
       